<include file="Public:header" />
			<include file="Public:menu" />
			<div id="right">
				<div class="top"></div>
				<div class="app_right_banner">
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo['faceimg']}"/>
					</div>
					<div class="app_userinfo">
						<?php 
						if($userInfo['id'] == $myId){
						 ?>
						<p class="app_module">我的日志 - {$blog['title']}</p>
						<p class = "app_module_back"><a href="__APP__/home/{$userInfo['id']}">返回我的空间</a></p>
						<?php 
						}else{
						 ?>
							<p class="app_module">{$userInfo.username}的日志</p>
							<p class = "app_module_back"><a href="__APP__/home/{$userInfo['id']}">返回{$userInfo['username']}的空间</a></p>
						<?php 
							}
						 ?>
					</div>
				</div>
				<div class="app_right_menu">
					<?php 
						if($userInfo['id'] == $myId){
					 ?>
					<div class="arm_1">
						日志查看
					</div>
					<div class="arm_2">
						<a href="__APP__/blogs/{$userInfo['id']}">返回日志列表</a>			
					</div>
					<div class="arm_2">
						<a href="__URL__/drafty">草稿箱</a>					
					</div>
					<div class="arm_2">
						<a href="__URL__/addblog">写一篇日志</a>					
					</div>
					<?php 
						}else{
					 ?>
					<div class="arm_1">
						{$userInfo['username']}的日志				
					</div>
					<div class="arm_2">
						<a href="__APP__/blogs/{$userInfo['id']}">{$userInfo['username']}的日志列表</a>			
					</div>
					<?php 
						}
					 ?>
				</div>
				<div class="app_right_count">
					
					<?php 
						if($userInfo['id'] == $myId){
					 ?>
							<a href="__URL__/editblog/id/{$blog['id']}">编辑该日志</a> | <a href="#" title="{$blog['id']}" class="delblog">删除该日志</a>
					<?php 
						}
					 ?>
				</div>
				<div>
					<div class="app_right_left">
						<div class="blogshow">
							<div class="blogtitle">
							<p class="bt_title">{$blog['title']}</p>
							<p><span class="li_time">{$blog['regtime']|toDate}</span></p>
							</div>
							<div class="blogcontent">
								{$blog['content']}
							</div>
							<div class="blogother"><?php if($blog['userid'] == $myId){ ?>{$blog['hits']}次阅读<?php } ?> {$blog['revertnum']}个评论 <a href="#postrevert">发表评论</a> </div>
						</div>
						<script type="text/javascript" src="__PUBLIC__/Js/FCKeditor/fckeditor.js"></script>
						<a name="revert"></a>
						<div class="revertshow">
							<volist name="revertlist" id="revert">
							<a name="revert{$revert['id']}"></a>
							<div class="revertlist">
								<div class="revert_username_face">
									<a href="__APP__/home/{$revert['userid']}"><img src="__PUBLIC__/Uploads/face/small/{$revert['faceimg']}"  width="60px" height="60px"/></a>
								</div>
								<div class="revertcontent">
									<div class="reverttitle"><a href="__APP__/home/{$revert['userid']}">{$revert['username']}</a> {$revert['regtime']|toDate} <span class="floor">{$i}楼</span> <?php if($revert['userid'] != $myId){ ?><a href="#revert{$revert['id']}" class="revert_revert" id="{$revert['id']}">回复</a><?php } ?> <?php if($revert['userid'] == $myId){ ?><a href="#" class="delrevert" id="{$revert['id']}">删除</a><?php } ?> </div>
									<div class="revert_content">{$revert['content']}</div>
								</div>
							</div>
							</volist>
						</div>
						<a name="postrevert"></a>
						<div class="revert_post">
							<form action="__URL__/saverevert" method="post">
							<p><b>发表评论</b> [至少两个字符以上]</p>
							<p>								
								<textarea id="content" name="content"></textarea>
								<script type="text/javascript"> 
									var oFCKeditor = new FCKeditor( "content","90%","160px","Basic") ; 
									oFCKeditor.BasePath = "__PUBLIC__/Js/FCKeditor/" ; 
									oFCKeditor.ReplaceTextarea() ;
								</script>
								<!--<textarea id="revertcontent" name="revertcontent" cols="40" rows="6"></textarea>-->
							</p>
							<p>
								<input type="hidden" id="blogid" value="{$blog['id']}"/>
								<input type="hidden" name="userid" value="{$blog['userid']}"/>
								<input type="button" class="revertpost" value="发表评论"/>
								<input type="hidden" name="reid" value="0"/>
							</p>
							</form>
						</div>
					</div>
					<div class="app_right_right">
					</div>
				</div>
				<div class="share">
					<a class="addshare" href="__APP__/share/addshare/g/blogs/id/{$blog['id']}"><img src="../Public/images/share.gif"/></a>
				</div>
			</div>
<include file="Public:footer" />